# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


# 🔍搜索结果（原创微博）
class AdvSearchItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    mid_str = scrapy.Field()    # 微博id（url形式）
    user_url = scrapy.Field()   # 用户主页的url
    user_name = scrapy.Field()   # 用户名
    verified_type = scrapy.Field()  # 用户认证类型
    text = scrapy.Field()       # 正文内容
    source = scrapy.Field()       # 来源
    created_at = scrapy.Field()     # 创建时间
    reposts_count = scrapy.Field()  # 转发数
    comments_count = scrapy.Field()  # 评论数
    attitudes_count = scrapy.Field()    # 点赞数


class FindSonItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    mid = scrapy.Field()  # 微博id
    pid = scrapy.Field()  # 父亲节点
    rootknot = scrapy.Field()  # 根节点（原创微博id）
    userid = scrapy.Field()  # 用户id
    verified_type = scrapy.Field()  # 用户认证等级
    text = scrapy.Field()  # 微博文本内容
    created_at = scrapy.Field()  # 微博发布时间
    reposts_count = scrapy.Field()  # 转发数量
    comments_count = scrapy.Field()  # 评论数量
    attitudes_count = scrapy.Field()  # 点赞数量
    followers_count = scrapy.Field()  # 被关注数
    follow_count = scrapy.Field()  # 关注数
    generation = scrapy.Field()  # 代数
    source = scrapy.Field()  # 来源


class UserSpiderItem(scrapy.Item):
    user_id = scrapy.Field()  # 用户id
    user_name = scrapy.Field()  # 昵称
    user_gender = scrapy.Field()  # 性别
    user_location = scrapy.Field()  # 地区
    user_birthday = scrapy.Field()  # 生日
    user_identification = scrapy.Field()  # 认证
    user_description = scrapy.Field()  # 简介
